﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Tycho.Lexer;
using Tycho.Parser.Tokens;

namespace TychoTest {
    [TestClass]
    public class TestLexer {
        [TestMethod]
        public void TestQuotesInStrings () {
            List<Token> tokens = NativeLexer.Lex (@"""a\""b""");

            Assert.AreEqual (1, tokens.Count);
            Assert.AreEqual ("a\"b", ((StringToken) tokens [0]).Value);
        }
    }
}
